<?php

/**
 * @author @author Samrat Khan & Sadik Sarfaraz - September 26, 2013
 */
require 'top.inc.php';
$formLoad = new Form();
if(isset($_SESSION['user']) && $_SESSION['user']['utype'] == 1 || $_SESSION['user']['utype'] == 2 || $_SESSION['user']['utype'] == 3 || $_SESSION['user']['utype'] == 4) {
    $sess_cusID = $_SESSION['user']['cus_id'];
?>
<h5>Add Data For Screening Test Center</h5>
<form name="addStc" id="addStc" method="post">
<?php
echo "<table class=\"form-inline row-fluid table table-striped table-bordered\">";
    echo "<tr>";
    
        echo "<th>" . $stc['serialno'] . "</th>";
        echo "<th>" . $stc['wh_stc_no'] . "</th>";
        echo "<th>" . "&nbsp;" . "</th>";
    echo "</tr>";
    
    echo "<tr>";
        echo "<td>" . $formLoad->textField('serialno', "", "stc_serial", $stc['serialno']) . "</td>";
        echo '<input type="hidden" id="faulties_id" name="faulties_id" value="" />';
        echo "<td>" . $formLoad->textField('wh_stc_no', "", "wh_stc_no", $stc['wh_stc_no']) . "</td>";
        echo '<input type="hidden" name="cus_stc_no" />';
        echo '<input type="hidden" name="userid" value="'.$_SESSION['user']['id'].'" />';
        echo '<input type="hidden" name="cus_id" value="'.$_SESSION['user']['cus_id'].'" />';
        echo '<input type="hidden" name="session_id" value="'.  session_id() .'" />';
        echo '<input type="hidden" name="junkentry" value="0" />';
        echo "<td>";
            echo '<input id="AddStcBtn" class="btn btn-primary" type="submit" value="Add Item" name="addStc" />';
        echo "</td>";
    echo "</tr>";
echo "<table>";
?>
</form>

<div id="show"></div>
<?php
}
include 'bottom.inc.php';
?>